package cn.net.sinodata.system.msghandler.parse.msgparse;

import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;

public class XmlMessageParse implements IMessageParse {

    @Override
    public Element parse(String xmlMsg) throws Exception {
        Document document  = DocumentHelper.parseText(xmlMsg);
        Element rootElement = document.getRootElement();
        return rootElement;
    }

}


